package com.inspur.cmis.service.impl;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.inspur.cmis.mapper.MgrCertificateMapper;
import com.inspur.cmis.mapper.MgrWorkHistoryMapper;
import com.inspur.cmis.pojo.MgrCertificate;
import com.inspur.cmis.service.MgrCertificateService;

@Service("mgrCertificateService")
public class MgrCertificateServiceImpl  implements MgrCertificateService{
	@Autowired
	private MgrCertificateMapper mgrCertificateMapper;
	@Override
	public List<MgrCertificate> getCertificateList(HashMap<String, Object> map) {
		
		return mgrCertificateMapper.getCertificateList(map);
	}

	@Override
	public void certificateAdd(MgrCertificate MgrCertificate) {
		mgrCertificateMapper.certificateAdd(MgrCertificate);
		
	}

	@Override
	public void deletecertificate(int[] mgrkeys) {
		mgrCertificateMapper.deletecertificate(mgrkeys);
		
	}

	@Override
	public List<MgrCertificate> getcerBykey(String key) {
		// TODO Auto-generated method stub
		return mgrCertificateMapper.getcerByKey(key);
	}

	@Override
	public void cerupdate(MgrCertificate hist) {
		mgrCertificateMapper.cerupdate(hist);
		
	}

}
